package com.irdstudio.efp.console.service.dao;

import com.irdstudio.efp.console.service.domain.SUser;
import com.irdstudio.efp.console.service.vo.SUserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>DAO interface:系统用户表				<p>
 * @author chenqm1
 * @date 2018-05-03
 */
public interface SUserDao {
	
	public int insertSUser(SUser sUser);
	
	public int deleteByPk(SUser sUser);
	
	public int updateByPk(SUser sUser);
	public int pwdByPk(SUser sUser);

	public SUser queryByPk(SUser sUser);
	
	public List<SUserVO> queryAllOwnerByPage(SUserVO sUser);

	public List<SUserVO> queryAllOrgByPage(SUserVO sUser);

	public List<SUserVO> queryAllCurrOrgByPage(SUserVO sUser);
	
	public List<SUserVO> queryAllCurrDownOrgByPage(SUserVO sUser);

	public List<SUserVO> queryAllUserByLegalOrg(SUserVO sUser);

	public SUser selectByPrimaryKey(String userName);
	/**
	 * 查询催收员信息
	 * @param sUser
	 * @return
	 */
	public List<SUserVO> queryColtUserByPage(SUserVO sUser);
	/**
	 * 根据查询条件查询用户 
	 * @param sUser
	 * @return
	 */
	public List<SUserVO> queryUsersByConditionByPage(SUserVO sUser);
	/**
	 * 查询催收员信息(调单查询)
	 * @param sUser
	 * @return
	 */
	public List<SUserVO> queryAdjustColtUserByPage(SUserVO sUser);

	/**
	 * @param sUser
	 * @return
	 * @author liuty
	 * @date 2019年7月13日 下午5:32:29
	 * @version 0.1
	 */
	public int insertOrUpdateByPk(SUser sUser);

	List<SUserVO> queryUsersByOrgCode(@Param("orgCode") String code);

	List<SUserVO> queryUSByOrgCode(@Param("orgCode") String code);



	public String queryUserNameByUserId(@Param("userCode") String userCode);

}